VIVE 3DSP Native C Library  ver 1.0.0.0
Audio 3DSP (3D Sound Perception) Native C Library
Public Member Functions | Static Public Member Functions | Data Fields
HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3 Struct Reference

#include <audio_engine.h>

Public Member Functions

VIVE_3DSP_Vector3 operator- (const VIVE_3DSP_Vector3 &a)
 
VIVE_3DSP_Vector3 operator+ (const VIVE_3DSP_Vector3 &a)
 
VIVE_3DSP_Vector3 operator* (const float &a)
 
VIVE_3DSP_Vector3 operator/ (const float &a)
 
bool equals (VIVE_3DSP_Vector3 a)
 

Static Public Member Functions

static float Dot (VIVE_3DSP_Vector3 a, VIVE_3DSP_Vector3 b)
 
static float Mag (VIVE_3DSP_Vector3 a)
 

Data Fields

float x
 
float y
 
float z
 

Detailed Description

A point or vector in 3D space. Here we use a right-handed coordinate system, with the positive x-axis pointing right, the positive y-axis pointing up, and the negative z-axis pointing ahead. If it stands for the rotation of the object, (x, y, z) will represent (roll, pitch, yaw).

Examples:
Example.cpp.

Member Function Documentation

◆ Dot()

static float HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::Dot ( VIVE_3DSP_Vector3  a,
VIVE_3DSP_Vector3  b 
)
static

◆ equals()

bool HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::equals ( VIVE_3DSP_Vector3  a)

◆ Mag()

static float HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::Mag ( VIVE_3DSP_Vector3  a)
static

◆ operator*()

VIVE_3DSP_Vector3 HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::operator* ( const float &  a)

◆ operator+()

VIVE_3DSP_Vector3 HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::operator+ ( const VIVE_3DSP_Vector3 &  a)

◆ operator-()

VIVE_3DSP_Vector3 HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::operator- ( const VIVE_3DSP_Vector3 &  a)

Overloading the vector substration.

◆ operator/()

VIVE_3DSP_Vector3 HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::operator/ ( const float &  a)

Field Documentation

◆ x

float HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::x

The x-coordinate direction or the roll rotation.

◆ y

float HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::y

The y-coordinate direction or the pitch rotation.

◆ z

float HTC_Vive3DSP_SDK::VIVE_3DSP_Vector3::z

The z-coordinate direction or the yaw rotation.


The documentation for this struct was generated from the following file: